#import "KaleidoscopeXenonController.h"
        
#import "KaleidoscopeXenonModel.h"
#import "KaleidoscopeXenonCell.h"
#import "Masonry.h"

@interface KaleidoscopeXenonController () <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong) UICollectionView *umbrellaNaturalCollectionView;
@property (nonatomic, strong) NSMutableArray *xenonXylophoneSuspicionModels;

@end

@implementation KaleidoscopeXenonController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self yearningHopeSetupui];
	[self gratitudeAmberMarbleloadData];
}


- (UICollectionView *)umbrellaNaturalCollectionView {
    if (!_umbrellaNaturalCollectionView) {
        UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
        flowLayout.minimumLineSpacing = 10;
        flowLayout.minimumInteritemSpacing = 10;
        flowLayout.itemSize = CGSizeMake(100, 100);
        flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
        
        _umbrellaNaturalCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:flowLayout];
        _umbrellaNaturalCollectionView.backgroundColor = UIColor.clearColor;
        _umbrellaNaturalCollectionView.delegate = self;
        _umbrellaNaturalCollectionView.dataSource = self;
        _umbrellaNaturalCollectionView.showsHorizontalScrollIndicator = NO;
        _umbrellaNaturalCollectionView.showsVerticalScrollIndicator = NO;
        [_umbrellaNaturalCollectionView registerClass:[KaleidoscopeXenonCell class] forCellWithReuseIdentifier:NSStringFromClass([KaleidoscopeXenonCell class])];
    }
    return _umbrellaNaturalCollectionView;
}

//: 懒加载数据模型数组
- (NSMutableArray *)xenonXylophoneSuspicionModels {
	if (!_xenonXylophoneSuspicionModels) {
		_xenonXylophoneSuspicionModels = [NSMutableArray array];
	}
	return _xenonXylophoneSuspicionModels;
}

//: 获取数据模型
- (void)gratitudeAmberMarbleloadData {
	
}

//: 初始化页面UI
- (void)yearningHopeSetupui {
	[self.view addSubview:self.umbrellaNaturalCollectionView];
	[self.umbrellaNaturalCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.edges.equalTo(self.view);
	}];
}


#pragma mark - UICollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.xenonXylophoneSuspicionModels.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    KaleidoscopeXenonCell *melancholy = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([KaleidoscopeXenonCell class]) forIndexPath:indexPath];
    return melancholy;
}

#pragma mark - UICollectionView Delegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //: collectioncell 点击
}


@end
